namespace YXShop.ExcelLite
{
    using System;

    public class LimitEventArgs : EventArgs
    {
        private string fileName;
        private int maxRowCount;
        private LimitEventOperation operation;
        private int worksheetCount;
        private bool writeWarningWorksheet;

        internal LimitEventArgs(string fileName, LimitEventOperation operation, int maxRowCount, int worksheetCount, bool writeWarningWorksheet)
        {
            this.fileName = fileName;
            this.operation = operation;
            this.maxRowCount = maxRowCount;
            this.worksheetCount = worksheetCount;
            this.writeWarningWorksheet = writeWarningWorksheet;
        }

        public string FileName
        {
            get
            {
                return this.fileName;
            }
        }

        public int MaxRowCount
        {
            get
            {
                return this.maxRowCount;
            }
        }

        public LimitEventOperation Operation
        {
            get
            {
                return this.operation;
            }
        }

        public int WorksheetCount
        {
            get
            {
                return this.worksheetCount;
            }
        }

        public bool WriteWarningWorksheet
        {
            get
            {
                return this.writeWarningWorksheet;
            }
            set
            {
                this.writeWarningWorksheet = value;
            }
        }
    }
}

